Integrand size = 34, antiderivative size = 126 \[ \int \frac {B \sec (c+d x)+C \sec ^2(c+d x)}{(a+a \sec (c+d x))^{5/2}} \, dx=\frac {(3 B+5 C) \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{16 \sqrt {2} a^{5/2} d}+\frac {(B-C) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(3 B+5 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}} \]
[Out]
Time = 0.20 (sec) , antiderivative size = 126, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.147, Rules used = {4137, 12, 3881, 3880, 209} \[ \int \frac {B \sec (c+d x)+C \sec ^2(c+d x)}{(a+a \sec (c+d x))^{5/2}} \, dx=\frac {(3 B+5 C) \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{16 \sqrt {2} a^{5/2} d}+\frac {(3 B+5 C) \tan (c+d x)}{16 a d (a \sec (c+d x)+a)^{3/2}}+\frac {(B-C) \tan (c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}} \]
[In]
[Out]
Rule 12
Rule 209
Rule 3880
Rule 3881
Rule 4137
Rubi steps \begin{align*} \text {integral}& = \frac {(B-C) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {\int -\frac {a (3 B+5 C) \sec (c+d x)}{2 (a+a \sec (c+d x))^{3/2}} \, dx}{4 a^2} \\ & = \frac {(B-C) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(3 B+5 C) \int \frac {\sec (c+d x)}{(a+a \sec (c+d x))^{3/2}} \, dx}{8 a} \\ & = \frac {(B-C) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(3 B+5 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {(3 B+5 C) \int \frac {\sec (c+d x)}{\sqrt {a+a \sec (c+d x)}} \, dx}{32 a^2} \\ & = \frac {(B-C) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(3 B+5 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}-\frac {(3 B+5 C) \text {Subst}\left (\int \frac {1}{2 a+x^2} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{16 a^2 d} \\ & = \frac {(3 B+5 C) \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{16 \sqrt {2} a^{5/2} d}+\frac {(B-C) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(3 B+5 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 1.06 (sec) , antiderivative size = 206, normalized size of antiderivative = 1.63 \[ \int \frac {B \sec (c+d x)+C \sec ^2(c+d x)}{(a+a \sec (c+d x))^{5/2}} \, dx=\frac {40 \sqrt {2} C \text {arctanh}\left (\frac {\sqrt {1-\sec (c+d x)}}{\sqrt {2}}\right ) \cos ^5\left (\frac {1}{2} (c+d x)\right ) \sec (c+d x) \sin \left (\frac {1}{2} (c+d x)\right )+64 B \cos ^5\left (\frac {1}{2} (c+d x)\right ) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},3,\frac {3}{2},\frac {1}{2} (1-\sec (c+d x))\right ) \sqrt {1-\sec (c+d x)} \sec (c+d x) \sin \left (\frac {1}{2} (c+d x)\right )+C \sqrt {1-\sec (c+d x)} (10 \sin (c+d x)+\sin (2 (c+d x)))}{32 a^2 d (1+\cos (c+d x))^2 \sqrt {1-\sec (c+d x)} \sqrt {a (1+\sec (c+d x))}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(324\) vs. \(2(107)=214\).
Time = 0.69 (sec) , antiderivative size = 325, normalized size of antiderivative = 2.58
method | result | size |
default | \(\frac {\sqrt {-\frac {2 a}{\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}}\, \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \left (2 B \left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1\right )^{\frac {3}{2}} \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )-2 C \left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1\right )^{\frac {3}{2}} \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )-3 B \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )-5 C \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )+3 B \ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )+\sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\right )+5 C \ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )+\sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\right )\right )}{32 a^{3} d}\) | \(325\) |
parts | \(\frac {B \sqrt {-\frac {2 a}{\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}}\, \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \left (2 \left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1\right )^{\frac {3}{2}} \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )-3 \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )+3 \ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )+\sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\right )\right )}{32 d \,a^{3}}-\frac {C \sqrt {-\frac {2 a}{\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}}\, \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \left (2 \left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1\right )^{\frac {3}{2}} \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )+5 \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )-5 \ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )+\sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\right )\right )}{32 d \,a^{3}}\) | \(386\) |
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 475, normalized size of antiderivative = 3.77 \[ \int \frac {B \sec (c+d x)+C \sec ^2(c+d x)}{(a+a \sec (c+d x))^{5/2}} \, dx=\left [-\frac {\sqrt {2} {\left ({\left (3 \, B + 5 \, C\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (3 \, B + 5 \, C\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (3 \, B + 5 \, C\right )} \cos \left (d x + c\right ) + 3 \, B + 5 \, C\right )} \sqrt {-a} \log \left (\frac {2 \, \sqrt {2} \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + 3 \, a \cos \left (d x + c\right )^{2} + 2 \, a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right ) - 4 \, {\left ({\left (7 \, B + C\right )} \cos \left (d x + c\right )^{2} + {\left (3 \, B + 5 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{64 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}}, -\frac {\sqrt {2} {\left ({\left (3 \, B + 5 \, C\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (3 \, B + 5 \, C\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (3 \, B + 5 \, C\right )} \cos \left (d x + c\right ) + 3 \, B + 5 \, C\right )} \sqrt {a} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt {a} \sin \left (d x + c\right )}\right ) - 2 \, {\left ({\left (7 \, B + C\right )} \cos \left (d x + c\right )^{2} + {\left (3 \, B + 5 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{32 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}}\right ] \]
[In]
[Out]
\[ \int \frac {B \sec (c+d x)+C \sec ^2(c+d x)}{(a+a \sec (c+d x))^{5/2}} \, dx=\int \frac {\left (B + C \sec {\left (c + d x \right )}\right ) \sec {\left (c + d x \right )}}{\left (a \left (\sec {\left (c + d x \right )} + 1\right )\right )^{\frac {5}{2}}}\, dx \]
[In]
[Out]
\[ \int \frac {B \sec (c+d x)+C \sec ^2(c+d x)}{(a+a \sec (c+d x))^{5/2}} \, dx=\int { \frac {C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right )}{{\left (a \sec \left (d x + c\right ) + a\right )}^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
none
Time = 1.96 (sec) , antiderivative size = 170, normalized size of antiderivative = 1.35 \[ \int \frac {B \sec (c+d x)+C \sec ^2(c+d x)}{(a+a \sec (c+d x))^{5/2}} \, dx=-\frac {\sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} {\left (\frac {2 \, \sqrt {2} {\left (B a^{5} - C a^{5}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}}{a^{8} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )} - \frac {\sqrt {2} {\left (5 \, B a^{5} + 3 \, C a^{5}\right )}}{a^{8} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \frac {\sqrt {2} {\left (3 \, B + 5 \, C\right )} \log \left ({\left | -\sqrt {-a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} \right |}\right )}{\sqrt {-a} a^{2} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )}}{32 \, d} \]
[In]
[Out]
Timed out. \[ \int \frac {B \sec (c+d x)+C \sec ^2(c+d x)}{(a+a \sec (c+d x))^{5/2}} \, dx=\int \frac {\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \]
[In]
[Out]